<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>物流发货管理</title>
    <link rel="shortcut icon" href="favicon.ico">
    <script src="../../res/js/comm.js"></script>
    <link href="../../res../res/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" rel="stylesheet">
    <script src="../../js/wms/select.js"></script>
    <script src="../../res/js/ajaxUtil.js"></script>
</head>
<body class="gray-bg">

<style>
    .select2-container--open {
        z-index: 10000000000
    }
</style>


<div class="wrapper wrapper-content animated fadeInRight">
    <div class="panel panel-info">
        <div class="panel-heading"><i class="fa fa-info-circle"></i> 物流发货管理</div>
        <div class="panel-body">
            <form id="queryForm" method="post" class="form-horizontal">
                <input id="receiveAreaName" type="hidden" name="receiveAreaName"/>
                <input id="deliveryAreaName" type="hidden" name="deliveryAreaName"/>
                <div class="form-group">
                    <label class="col-sm-1 control-label" style="margin-top: 8px;">发货(省/市)</label>
                    <div class="bars pull-left" style="margin-top: 10px;">
                        <select id="province" name="provinceCode" style="width: 150px;">
                            <option value="">请选择省/直辖市</option>
                        </select>
                        <select id="city" name="cityCode" style="width: 150px;">
                            <option value="">请选择市</option>
                        </select>
                    </div>
                    <label class="col-sm-1 control-label" style="margin-top: 8px;">收货(省/市/区)</label>
                    <div class="bars pull-left" style="margin-top: 10px;">
                        <select id="receive_province" name="receiveprovinceCode" style="width: 150px;">
                            <option value="">请选择省/直辖市</option>
                        </select>
                        <select id="receive_city" name="receiveCityCode" style="width: 150px;">
                            <option value="">请选择市</option>
                        </select>
                        <select id="receive_district" name="receiveDistrictCode" style="width: 150px;">
                            <option value="">请选择区域</option>
                        </select>
                    </div>
                    <!--<label class="col-sm-1 control-label" style="margin-top: 8px;">所属渠道</label>-->
                    <!--<div class="col-sm-2" style="margin-top: 10px;">-->
                        <!--<select id="topChannelCode" name="topChannelCode" style="width: 200px;" ></select>-->
                    <!--</div>-->
                    <label class="col-sm-1 control-label" style="margin-top: 8px;">物流类型</label>
                    <div class="col-sm-2" style="margin-top: 10px;">
                        <select id="deliveryType" name="deliveryType" style="width: 200px;" ></select>
                    </div>
                    <div>
                        <button style="margin-left: 50px; margin-top: 5px;" class="btn btn-info" onclick='$.openx.query()'
                                type="button"><i class="glyphicon glyphicon-search"></i> 查询
                        </button>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
            </form>

            <div class="row row-lg">
                <div class="col-sm-12">
                    <div id="manageBar" ></div>
                    <table id="table">
                        <thead>
                        <tr>
                            <th data-field="stats" data-checkbox="true"></th>
                            <th data-align="center" data-visible="false" data-field="id">id</th>
                            <th data-align="center" data-field="deliveryAreaName">发货(省-市)</th>
                            <th data-align="center" data-field="deliveryTypeName">物流类型</th>
                            <th data-align="center" data-field="receiveAreaName" >收货(省-市-区)</th>
                            <th data-align="center" data-field="deliveryPartnerName">所属物流</th>
                            <th data-align="center" data-field="sortNum">优先级</th>
                        </tr>
                        </thead>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
</div>
</body>


<script type="text/html" id="addManagerDialog">
    <form class="form-horizontal" id="addManagerForm">
        <input id="add_id" type="hidden" name="id" value="{{!d.id ? '':d.id}}"/>
        <input id="add_provinceId" type="hidden" name="deliveryProvinceName"/>
        <input id="add_cityId" type="hidden" name="deliveryCityName"/>
        <input id="add_receive_provinceId" type="hidden" name="receiveProvinceName"/>
        <input id="add_receive_cityId" type="hidden" name="receiveCityName"/>
        <input id="add_receive_districtId" type="hidden" name="receiveDistrictName"/>
        <input id="deliveryAreaCode" type="hidden" name="deliveryAreaCode"/>
        <div class="col-md-12" style="width: 800px;margin-top: 50px">
            <div class="form-group" >
                <label class="col-md-4 control-label"><i class="snowflake"></i>发货(省/市): </label>
                <div class="col-sm-8" >
                    <select id="add_province" name="provinceCode" style="width: 150px;" placeholder="请选择省/直辖市"  required="true">
                        <option value="" >请选择省/直辖市</option>
                    </select>
                    <select id="add_city" name="cityCode" style="width: 150px;" placeholder="请选择市"  required="true">
                        <option value="">请选择市</option>
                    </select>
                </div>
            </div>
            <div class="form-group" >
                <label class="col-md-4 control-label"><i class="snowflake"></i>物流类型：</label>
                <div class="col-sm-8" >
                    <select id="add_deliveryType" name="deliveryType" style="width: 150px;" placeholder="物流类型"  required="true"></select>
                </div>
            </div>
            <div class="form-group" >
                <label class="col-md-4 control-label"><i class="snowflake"></i>收货(省/市/区): </label>
                <div class="col-sm-8" >
                    <select id="receive_add_province" name="receiveProvinceCode" style="width: 150px;" placeholder="请选择省/直辖市"  required="true">
                        <option value="">请选择省/直辖市</option>
                    </select>
                    <select id="receive_add_city" name="receiveCityCode" style="width: 150px;">
                        <option value="">请选择市</option>
                    </select>
                    <select id="receive_add_district" name="receiveDistrictCode" style="width: 150px;">
                        <option value="">请选择区</option>
                    </select>
                </div>
            </div>
            <div class="form-group" >
                <label class="col-md-4 control-label"><i class="snowflake"></i>所属物流：</label>
                <div class="col-sm-8" >
                    <select id="add_partner" name="deliveryPartner" style="width: 150px;" placeholder="请输入物流"  required="true"></select>
                </div>
            </div>
            <div class="form-group" >
                <label class="col-md-4 control-label"><i class="snowflake"></i>优先级：</label>
                <div class="col-sm-8" >
                    <input name="sortNum" id="sort_num" class="form-control" style="width: 150px;" placeholder="数字越小优先级越高" type="text" title="必填字段" required="true" value="{{!d.sortNum ? '':d.sortNum}}">
                </div>
            </div>
        </div>
    </form>
</script>


<script>

    (function () {
        $.openx.loadScript(['../../js/logistics/logisticsDeliveryManager.js']);
    })();
</script>
</html>
